package com.testMaven;
import static org.testng.AssertJUnit.assertEquals;

import org.databene.benerator.anno.Source;
import org.databene.feed4testng.FeedTest;
import org.testng.annotations.Test;
public class LoginTestFeeder extends FeedTest {
	  
		Login login = new Login();
		//测试开始时声明数据源方式为feeder
		@Test(dataProvider="feeder")
		//指定数据源路径
		@Source("data/userlogin.csv")
		//方法中传入参数以文件中列逐一读取，第一行不读取
		public void loginCase(String userName, String passWord,boolean flag ) throws Exception{
			assertEquals(flag, login.testLogin(userName,passWord));
		}
}
